{extend name="adminheader:header"/}
{block name="content"}
	<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                	<div class="ibox-title">
                        <h5>修改{$list.name}</h5>
                    </div>
                    <div class="ibox-content">
                        <form action="{:url('/admin/Category/editPost')}" method="post" class="form-horizontal js-ajax-form m-t">
                        	<input type="hidden" name="id" value="{$list.id}" />
                            <div class="form-group">
                                <label class="col-sm-3 control-label">商品分类</label>
                                <div class="col-sm-8">
                                    <input name="name" type="text" class="form-control" value="{$list.name}" />
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-3">
                                    <button class="btn btn-primary js-ajax-submit" type="submit">保存</button>
                                    <a class="btn btn-default" href="{:url('/admin/Category/index')}">返回</a>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
<script src="/admin/js/admin.js"></script>
{/block}